package com.book.remote;

import com.book.dto.ShopCarDto;
import com.book.vo.ShopCarVo;

import java.util.List;

/**
 * @Author 李锦程
 * @Date 2021/4/22 6:56 下午
 * @Package com.book.service
 * @Version 1.0
 */
public interface ShopCarApi {
    ShopCarDto getCarByUId(Integer uId);
    /**
     * 获取用户购物车内容
     * @param scCode
     * @return
     */
    List<ShopCarVo> getShopCarDetail(String scCode);

    void addCar(ShopCarDto carDto);

    String addBookToCar(String ubCode, String uCode);

    void updateCarBookNum(Integer id, int num);

    Integer deleteCarBook(Integer id);
}
